<?php
	include_once $_SERVER ['DOCUMENT_ROOT'] . '/ad/sys/com/model/db/publish/ClickedAdSumpayDAO.php';
	include_once $_SERVER ['DOCUMENT_ROOT'] . '/ad/sys/com/model/db/publish/PublishClickedAdDAO.php';
	include_once $_SERVER ['DOCUMENT_ROOT'] . '/ad/sys/com/model/db/publish/PublishPayToUserDAO.php';
	include_once $_SERVER ['DOCUMENT_ROOT'] . '/ad/sys/com/model/util/Util.php';
	  
	$clickedAdSumpayDAO=new ClickedAdSumpayDAO();
	$publishClickedAdDAO=new PublishClickedAdDAO();
	$publishPayToUserDAO=new PublishPayToUserDAO();
	@session_start();
	$queryParamAccount=Util::jsonToArray($_SESSION["user"]);
	$queryParamAccount=$queryParamAccount["Account"];
//	echo $queryParamAccount->"Account";
//	echo $queryParamAccount;
	$totalSum=$clickedAdSumpayDAO->getSumPayByAccount($queryParamAccount);
	$todaySum=$publishClickedAdDAO->getTodayPay($queryParamAccount);
	$payedSum=$publishPayToUserDAO->getSumPayed($queryParamAccount);
//	echo "totalSum=$totalSum";
//	echo "todaySum=$todaySum";
?>